PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


SetThemeTextColor

Sets the current text color to be consistent with that of a specified element.

pascal OSStatus SetThemeTextColor (
                     ThemeTextColor inColor,
                     SInt16 inDepth,
                     Boolean inIsColorDevice);
inColor
A value of type ThemeTextColor . Pass a constant specifying an interface element. SetThemeTextColor sets the current text color to be the same as the color of that element's text. See Theme Text Color Constants for descriptions of possible values.
inDepth
A signed 16-bit integer. Pass a value specifying the bit depth (in bits per pixel) of the current graphics port.
inIsColorDevice
A value of type Boolean . Pass true to indicate that you are drawing on a color device. Pass false for a monochrome device.
function result
A result code. The result code appearanceBadTextColorIndexErr indicates that the text color index passed was not valid. For other possible result codes, see Result Codes .
DISCUSSION

Your application typically uses the SetThemeTextColor function inside a DeviceLoop drawing procedure to set the foreground color to a theme-compliant value.

VERSION NOTES

Available with Appearance Manager 1.0 and later.

SEE ALSO

The function GetThemeTextColor .


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)